<template>
    <div class="box">
        <el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="用户名:">
                <el-input v-model="form.username"></el-input>
            </el-form-item>
            <el-form-item label="密码:">
                <el-input v-model="form.password"></el-input>
            </el-form-item>
            <el-form-item label="真实姓名:">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="年龄:">
                <el-input v-model="form.age"></el-input>
            </el-form-item>
            <el-form-item label="性别">
                <el-select v-model="form.sex" placeholder="性别">
                    <el-option label="男"></el-option>
                    <el-option label="女"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="出生日期">
                <div class="block">
                    <el-date-picker type="date" placeholder="选择日期">
                    </el-date-picker>
                </div>
            </el-form-item>
            <el-form-item label="手机:">
                <el-input v-model="form.phone"></el-input>
            </el-form-item>
            <el-form-item label="年级">
                <el-select v-model="form.classes">
                    <el-option label="一年级"></el-option>
                    <el-option label="二年级"></el-option>
                    <el-option label="三年级"></el-option>
                    <el-option label="四年级"></el-option>
                    <el-option label="五年级"></el-option>
                    <el-option label="六年级"></el-option>
                    <el-option label="初一"></el-option>
                    <el-option label="初二"></el-option>
                    <el-option label="初三"></el-option>
                    <el-option label="高一"></el-option>
                    <el-option label="高二"></el-option>
                    <el-option label="高三"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="状态">
                <el-select v-model="form.status">
                    <el-option label="启用"></el-option>
                    <el-option label="禁用"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="onSubmit">立即创建</el-button>
                <el-button>取消</el-button>
            </el-form-item>
        </el-form>

    </div>
</template>
<script>
export default {
    data() {
        return {
            form: {
                username:'',
                password:'',
                name: '',
                age:'',
                sex:'',
                phone:'',
                classes:'',
                status:'',
            }
        }
    },
    methods: {
        onSubmit() {
            console.log('submit!');
        }
    }
}
</script>
<style lang="scss" scoped></style>